//============================================================================
// Copyright (C) 2003-2013 Brett R. Jones 
// All Rights Reserved
//
// You may redistribute and/or modify for non commercial and commercial uses 
// provided this copyright notice remains in place and is not modified
//
// This code is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// brettjones1900@gmail.com
// http://www.p2panarchy.com
//============================================================================
class PktTalk : public VxPktHdr
{
public:
	PktTalk()
	{
		m_u16PktType = PKT_TYPE_TALK;
	}
	void CalcLen( U16 u16MsgLen )
	{
		//calculate length of packet from msg len including null terminator
		m_u16PktLen = ROUND_TO_16BYTE_BOUNDRY( ( sizeof( PktTalk ) - PKT_MAX_MSG_LEN + u16MsgLen ) );
	}
	U8	u8MsgType;		// message type
	U16	u16TextColor;	// text color
	U16	u16Font;		// text font
	S8 as8Msg[ PKT_MAX_MSG_LEN ];
};